export interface getHosSetListPramsTypes {
  page:number,
  limit:number,
  hosname?:string,
  hoscode?:string
}

//医院设置请求返回值中 records的类型设置

export interface getHosSetListItem {
  id:number,
  createTime:string,
  updateTime:string,
  isDeleted:0 | 1,
  param:object,
  hosname:string,
  hoscode:string,
  apiUrl:string,
  signKey:string,
  contactsName:string,
  contactsPhone:string,
  status:0 | 1
}
export type getHosSetListRecordsType = getHosSetListItem[]
/*[
  {
    "id": 10,
    "createTime": "2022-04-11 16:41:18",
    "updateTime": "2022-06-15 08:22:30",
    "isDeleted": 0,
    "param": {},
    "hosname": "北京大学深圳医院",
    "hoscode": "2022222",
    "apiUrl": "http://api.bjdxszyy.cn",
    "signKey": "62b84e910bd6d7b67157aed66e7aa866",
    "contactsName": "隔壁老王",
    "contactsPhone": "13000000000",
    "status": 0
  }
],*/

//医院设置中，获取医院列表请求中的，返回值类型设置
export interface getHosSetListReqReturn {
  records:getHosSetListRecordsType,
  total:number,
  size:number,
  current:number,
  orders:any[],
  hitCount:boolean,
  searchCount:boolean,
  pages:number
}
//一下是测试请求来的数据展示
/*
 {
    "records": []
    "total": 10,
    "size": 1,
    "current": 1,
    "orders": [],
    "hitCount": false,
    "searchCount": true,
    "pages": 10
  }
}*/

// 3.添加医院的api参数的类型 和返回值的类型,post 请求无返回值，设置为null

export interface postAddHosPramsType {
  contactsName: string,
  contactsPhone: string,
  hoscode: string,
  hosname: string,
  apiurl: string
}
export interface putHosPramsType extends postAddHosPramsType{
  id:string
}

export type key = string | number
